#ifndef TITLE_H
#define TITLE_H

#include <string>
using namespace std;

class title {
public:
	title():_duration(0) {}
	title(const string &name, const string &file, int dur)
	:_name(name), _file(file), _duration(dur) {}
	~title() {}

	void set_name(const string &name) { _name = name; }
	void set_file(const string &file) { _file = file; }
	void set_duration(int dur) { _duration = dur; }
	const string& get_name() const { return _name; }
	const string& get_file() const { return _file; }
	int get_duration() const { return _duration; }

	string to_xml() const;
private:
	string _name;
	string _file;
	int _duration;
};

#endif
